package gk.example;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import cn.bmob.push.BmobPush;
import cn.bmob.v3.Bmob;
import cn.smssdk.SMSSDK;

/**
 * 
 * Description:所有Activity的基类
 * 
 * @author Wenk.Chan（最新修改者）
 * @version 1.0（最新版本号）
 */
public abstract class BaseActivity extends FragmentActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Bmob.initialize(this, App.BMOBKEY); // 初始化BMob模块

		// 启动推送服务
		BmobPush.startWork(this, App.BMOBKEY);
		SMSSDK.initSDK(this, "45b9c1d82990 ",
				"ed4649e62931342313e3ce9ec04b9137");
		initView();
		initEvent();
	}

	protected abstract void initView();

	protected abstract void initEvent();
}
